package com.xh.bussiness.exam.dao;

import com.xh.bussiness.exam.bean.dto.StudentExerciseDto;
import com.xh.bussiness.exam.bean.request.StudentExerciseRequest;
import com.xh.bussiness.exam.model.StudentExercise;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课堂练习学生记录表 Mapper 接口
 * </p>
 *
 * @author Pitt Cheung
 * @since 2021-08-26
 */
public interface StudentExerciseMapper extends BaseMapper<StudentExercise> {
    List<StudentExerciseDto> queryStudentExercises(@Param("bean") StudentExerciseRequest bean);
    int updateStudentExercise(@Param("bean") StudentExercise studentExercise);
    List<StudentExercise> selectTeacherIdByStudentId(@Param("studentId") String studentId);
}
